package Day03;

public class OperDemo3 {
    public static void main(String[] args) {
        int a=5,b=10,c=5;
        /*boolean b1=b>=a && b<c;
        System.out.println(b1);
        System.out.println(b!=c && a<b);
        System.out.println(b<=c && b>a);
        System.out.println(a==b && a>b);

        int age=40;
        System.out.println(age>=18 && age<=50);//年龄在18到50之间
        int score=86;
        System.out.println(score>=0 && score<=100);//成绩在0到100之间

         */
        /*System.out.println(b>=a || b<c);
        System.out.println(b<=c || b>a);
        System.out.println(b!=c || a<b);
        System.out.println(b==c || b<c);
        int score =90;
        System.out.println(score<0 || score>100);//成绩不合法验证，不在0到100之间

        boolean b2=!(a<b);
        System.out.println(b2);//!true=flase
        System.out.println(!(a>b));//!false=true

         */
        boolean b3 =a>b && c++>2;
        System.out.println(b3);
        System.out.println(c);
        boolean b4 =a<b || c++>2;
        System.out.println(b4);
        System.out.println(c);

    }
}
